package com.snopy.collection;

import java.util.*;

/**
 * @author snopy
 * @version 1.0.0
 * @classname CollectionDemo
 * @description
 * @email 77912204@qq.com
 * @date 2022/07/25 8:45
 */
public class CollectionDemo {

    public static void main(String[] args) {
        SortedMap<String,String> treemap = new TreeMap<>();
        treemap.put("abc","abc");
        treemap.put("abd","abd");
        treemap.put("abg","abg");
        treemap.put("abe","abe");
        treemap.forEach((k,v)->{
            System.out.println("key: "+k+" val: "+v);
        });
        Queue<String> queue = new ArrayDeque<>();
        List<String> list = new ArrayList<>();
        Set<String> set = new HashSet<>(list);
        //TreeSet<String> set = new TreeSet<>();
        
    }
}
